Optimal. Leaf size=90 \[ \frac{x^2}{2}-\frac{1}{2} \sqrt{\frac{1}{5} \left (9+4 \sqrt{5}\right )} \tan ^{-1}\left (\sqrt{\frac{2}{3+\sqrt{5}}} x^2\right )+\frac{1}{2} \sqrt{\frac{1}{5} \left (9-4 \sqrt{5}\right )} \tan ^{-1}\left (\sqrt{\frac{1}{2} \left (3+\sqrt{5}\right )} x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.142151, antiderivative size = 90, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {1359, 1122, 1166, 203} \[ \frac{x^2}{2}-\frac{1}{2} \sqrt{\frac{1}{5} \left (9+4 \sqrt{5}\right )} \tan ^{-1}\left (\sqrt{\frac{2}{3+\sqrt{5}}} x^2\right )+\frac{1}{2} \sqrt{\frac{1}{5} \left (9-4 \sqrt{5}\right )} \tan ^{-1}\left (\sqrt{\frac{1}{2} \left (3+\sqrt{5}\right )} x^2\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1359
Rule 1122
Rule 1166
Rule 203
Rubi steps
\begin{align*} \int \frac{x^9}{1+3 x^4+x^8} \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{x^4}{1+3 x^2+x^4} \, dx,x,x^2\right )\\ &=\frac{x^2}{2}-\frac{1}{2} \operatorname{Subst}\left (\int \frac{1+3 x^2}{1+3 x^2+x^4} \, dx,x,x^2\right )\\ &=\frac{x^2}{2}-\frac{1}{20} \left (15-7 \sqrt{5}\right ) \operatorname{Subst}\left (\int \frac{1}{\frac{3}{2}-\frac{\sqrt{5}}{2}+x^2} \, dx,x,x^2\right )-\frac{1}{20} \left (15+7 \sqrt{5}\right ) \operatorname{Subst}\left (\int \frac{1}{\frac{3}{2}+\frac{\sqrt{5}}{2}+x^2} \, dx,x,x^2\right )\\ &=\frac{x^2}{2}-\frac{1}{2} \sqrt{\frac{1}{5} \left (9+4 \sqrt{5}\right )} \tan ^{-1}\left (\sqrt{\frac{2}{3+\sqrt{5}}} x^2\right )+\frac{1}{20} \sqrt{180-80 \sqrt{5}} \tan ^{-1}\left (\sqrt{\frac{1}{2} \left (3+\sqrt{5}\right )} x^2\right )\\ \end{align*}
Mathematica [A] time = 0.146126, size = 97, normalized size = 1.08 \[ \frac{1}{40} \left (20 x^2-\sqrt{6-2 \sqrt{5}} \left (15+7 \sqrt{5}\right ) \tan ^{-1}\left (\sqrt{\frac{2}{3+\sqrt{5}}} x^2\right )+\sqrt{2 \left (3+\sqrt{5}\right )} \left (7 \sqrt{5}-15\right ) \tan ^{-1}\left (\sqrt{\frac{1}{2} \left (3+\sqrt{5}\right )} x^2\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.041, size = 117, normalized size = 1.3 \begin{align*}{\frac{{x}^{2}}{2}}+{\frac{7\,\sqrt{5}}{-10+10\,\sqrt{5}}\arctan \left ( 4\,{\frac{{x}^{2}}{-2+2\,\sqrt{5}}} \right ) }-3\,{\frac{1}{-2+2\,\sqrt{5}}\arctan \left ( 4\,{\frac{{x}^{2}}{-2+2\,\sqrt{5}}} \right ) }-{\frac{7\,\sqrt{5}}{10+10\,\sqrt{5}}\arctan \left ( 4\,{\frac{{x}^{2}}{2+2\,\sqrt{5}}} \right ) }-3\,{\frac{1}{2+2\,\sqrt{5}}\arctan \left ( 4\,{\frac{{x}^{2}}{2+2\,\sqrt{5}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{1}{2} \, x^{2} - \int \frac{{\left (3 \, x^{4} + 1\right )} x}{x^{8} + 3 \, x^{4} + 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.58515, size = 456, normalized size = 5.07 \begin{align*} \frac{1}{2} \, x^{2} - \frac{1}{5} \, \sqrt{5} \sqrt{-4 \, \sqrt{5} + 9} \arctan \left (\frac{1}{4} \, \sqrt{2 \, x^{4} - \sqrt{5} + 3}{\left (3 \, \sqrt{5} \sqrt{2} + 7 \, \sqrt{2}\right )} \sqrt{-4 \, \sqrt{5} + 9} - \frac{1}{2} \,{\left (3 \, \sqrt{5} x^{2} + 7 \, x^{2}\right )} \sqrt{-4 \, \sqrt{5} + 9}\right ) - \frac{1}{5} \, \sqrt{5} \sqrt{4 \, \sqrt{5} + 9} \arctan \left (-\frac{1}{4} \,{\left (6 \, \sqrt{5} x^{2} - 14 \, x^{2} - \sqrt{2 \, x^{4} + \sqrt{5} + 3}{\left (3 \, \sqrt{5} \sqrt{2} - 7 \, \sqrt{2}\right )}\right )} \sqrt{4 \, \sqrt{5} + 9}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.197984, size = 54, normalized size = 0.6 \begin{align*} \frac{x^{2}}{2} + 2 \left (\frac{1}{4} - \frac{\sqrt{5}}{10}\right ) \operatorname{atan}{\left (\frac{2 x^{2}}{-1 + \sqrt{5}} \right )} - 2 \left (\frac{\sqrt{5}}{10} + \frac{1}{4}\right ) \operatorname{atan}{\left (\frac{2 x^{2}}{1 + \sqrt{5}} \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.23001, size = 89, normalized size = 0.99 \begin{align*} \frac{1}{2} \, x^{2} - \frac{1}{20} \,{\left (3 \, x^{4}{\left (\sqrt{5} - 5\right )} + \sqrt{5} - 5\right )} \arctan \left (\frac{2 \, x^{2}}{\sqrt{5} + 1}\right ) - \frac{1}{20} \,{\left (3 \, x^{4}{\left (\sqrt{5} + 5\right )} + \sqrt{5} + 5\right )} \arctan \left (\frac{2 \, x^{2}}{\sqrt{5} - 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]